using System;
using System.ComponentModel;
using System.Collections.Generic;

using Castle.ActiveRecord;

/// <summary>
/// Business entity class generated from SupplierContactPoint
/// </summary>
/// <remarks>
/// Created by: huanhvhd
/// Created date: [2011-04-23]
/// </remarks>
namespace TVN.ShopMan.ActiveModels
{
	[ActiveRecord("SupplierContactPoint")]
	public partial class SupplierContactPoint : ActiveRecordBase<SupplierContactPoint>
	{
		#region Properties
		
        /// <summary>
        /// All properties
        /// </summary>
		public class Properties
		{
			public const string Id = "Id";
			public const string ContactPoint = "ContactPoint";
			public const string Supplier = "Supplier";
		}

		#endregion

		#region Private fields

		private int _id;
		private ContactPoint _contactPointId;
		private Supplier _supplierId;


		#endregion

		#region Constructors

		public SupplierContactPoint()
		{
		}

		#endregion

		#region Properties

		[PrimaryKey("Id", Access = PropertyAccess.NosetterLowercaseUnderscore)]
		public int Id
		{
			get { return _id; }
		}

		[BelongsTo("ContactPointId", Type = typeof(ContactPoint))]
		public ContactPoint ContactPoint
		{
			get { return _contactPointId; }
			set { _contactPointId = value; }
		}

		[BelongsTo("SupplierId", Type = typeof(Supplier))]
		public Supplier Supplier
		{
			get { return _supplierId; }
			set { _supplierId = value; }
		}

		#endregion

	} }
